<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sf" uri="http://www.saoft.com/tag1.0" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <jsp:include page="../../common/header.jsp"/>
</head>
<body>
<div class="layui-container layui-form timo-compile">
    <form action="/cms/archives/save">
        <input type="hidden" name="id" value="${archives.id}"/>
        <input type="hidden" name="uuid" value="${archives.uuid}"/>

        <div jsoup="field" class="layui-form-item">
            <input class="layui-input" type="text" name="title"  placeholder="请输入标题" value="${archives.title}">
        </div>

        <div jsoup="field" class="layui-form-item">
            <textarea id="content"></textarea>
        </div>

        <div jsoup="field" class="layui-form-item">
            <label class="layui-form-label">分类id</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="cid"  placeholder="请输入分类id" value="${archives.cid}">
            </div>
        </div>
        <div jsoup="field" class="layui-form-item">
            <label class="layui-form-label">模版id</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="pid"  placeholder="请输入模版id" value="${archives.pid}">
            </div>
        </div>
        <div jsoup="field" class="layui-form-item">
            <label class="layui-form-label">作者</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="author"  placeholder="请输入作者" value="${archives.author}">
            </div>
        </div>

        <div jsoup="field" class="layui-form-item">
            <label class="layui-form-label">描述</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="description"  placeholder="请输入描述" value="${archives.description}">
            </div>
        </div>

        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<jsp:include page="../../common/script.jsp"/>
<script src="/static/lib/tinymce/tinymce.min.js"></script>
<script>
    tinymce.init({
        selector: '#content'
        , height: '400px'
        ,  language: 'zh_CN'
        , images_upload_url: '/fs/upload'
        , plugins: 'image codesample paste'
        ,toolbar: 'undo redo | image codesample'
        , paste_data_images: true

    });
</script>
</body>
</html>